﻿<Window x:Class="cau2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
    <Grid Height="305">
        <Label Height="28" HorizontalAlignment="Left" Margin="12,24,0,0" Name="label1" VerticalAlignment="Top" Content="Mã SV" />
        <Label Content="Họ SV" Height="28" HorizontalAlignment="Left" Margin="154,24,0,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="Tên SV" Height="28" HorizontalAlignment="Right" Margin="0,22,152,0" Name="label3" VerticalAlignment="Top" />
        <Label Content="Mã Khoa" Height="28" HorizontalAlignment="Left" Margin="12,53,0,0" Name="label4" VerticalAlignment="Top" />
        <Label Content="Ngày Sinh" Height="28" HorizontalAlignment="Left" Margin="154,53,0,0" Name="label5" VerticalAlignment="Top" />
        <Label Content="Giới Tính" Height="28" HorizontalAlignment="Left" Margin="307,51,0,0" Name="label6" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="66,24,0,0" Name="masv" VerticalAlignment="Top" Width="82" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="200,24,0,0" Name="hosv" VerticalAlignment="Top" Width="95" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="366,26,0,0" Name="tensv" VerticalAlignment="Top" Width="120" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="66,53,0,0" Name="makhoa" VerticalAlignment="Top" Width="82" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="366,55,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" />
        <DataGrid Name="datagrid" AutoGenerateColumns="False" Margin="0,82,0,33">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Mã SV" Width="50" Binding="{Binding sohd}"></DataGridTextColumn>
                <DataGridTextColumn Header="Họ SV" Width="100" Binding="{Binding tenhang}"></DataGridTextColumn>
                <DataGridTextColumn Header="Tên SV" Width="100" Binding="{Binding soluong}"></DataGridTextColumn>
                <DataGridTextColumn Header="Ngày Sinh" Width="100" Binding="{Binding dongia}"></DataGridTextColumn>
                <DataGridTextColumn Header="Giới Tính" Width="100" Binding="{Binding trigia}"></DataGridTextColumn>
                <DataGridTextColumn Header="Mã Khoa" Width="100" Binding="{Binding khuyenmai}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Thêm" Height="23" HorizontalAlignment="Left" Margin="9,282,0,0" Name="them" VerticalAlignment="Top" Width="75" />
        <Button Content="Sửa" Height="23" HorizontalAlignment="Left" Margin="91,282,0,0" Name="sua" VerticalAlignment="Top" Width="75" />
        <Button Content="Xóa" Height="23" HorizontalAlignment="Left" Margin="172,282,0,0" Name="xoa" VerticalAlignment="Top" Width="75" />
        <Button Content="Lưu" Height="23" HorizontalAlignment="Left" Margin="255,282,0,0" Name="luu" VerticalAlignment="Top" Width="75" />
        <Button Content="Hủy" Height="23" HorizontalAlignment="Left" Margin="337,282,0,0" Name="Huy" VerticalAlignment="Top" Width="75" />
        <Button Content="Thoát" Height="23" HorizontalAlignment="Right" Margin="0,282,10,0" Name="Thoat" Click="Thoat_Click" VerticalAlignment="Top" Width="75" />
    </Grid>
</Window>
